<template>
  <div class="home">
     <div class="topnavAndBanner">
      <img src="../assets/log.jpg" width="50px"> <span style="font-size:25px;color: #02bcb0">qr-ui</span>
      <div class="banner">
      <p class="actions">
        <router-link to="/doc">start -></router-link>
      </p>
    </div>
  </div>
  <div class="content">
    <div>
      <h2>基于VUE</h2>
      <p>一套基于Vue的UI组件库</p>
    </div>
    <div>
      <h2>简明优先</h2>
      <p>极简化设计，注重内部功能实现</p>
    </div>
    <div>
      <h2>代码易读</h2>
      <p>每个组件的源代码都极其简洁</p>
    </div>
  </div>
  </div>
</template>

<script>
export default {
 name: 'Home'
}
</script>

<style lang="scss" scoped>
  img {
    margin-left: 16px;
    border-radius: 50%;
    vertical-align: middle;
  }
  $green: #02bcb0;
  $border-radius: 4px;
  $color: #007974;

.topnavAndBanner {
  background: linear-gradient(145deg, rgba(227, 255, 253, 1) 0%, rgba(183, 233, 230, 1) 100%);
  clip-path: ellipse(80% 60% at 50% 40%);
}

.features {
  margin: 64px auto;
  padding: 0 16px;

  @media (min-width: 800px) {
    width: 800px;

    >ul {
      >li {
        width: 50%;
      }
    }
  }

  @media (min-width: 1200px) {
    width: 1200px;

    >ul {
      >li {
        width: 33.3333%;
      }
    }
  }

  >ul {
    display: flex;
    flex-wrap: wrap;

    >li {
      margin: 16px 0;
      display: grid;
      justify-content: start;
      align-content: space-between;
      grid-template-areas:
        "icon title"
        "icon text";
      grid-template-columns: 80px auto;
      grid-template-rows: 1fr auto;

      >svg {
        grid-area: icon;
        width: 64px;
        height: 64px;
      }

      >h3 {
        grid-area: title;
        font-size: 28px;
      }

      >p {
        grid-area: text
      }
    }
  }
}
.content {
  height: 200px;
  width: 1600px;
  margin: 100px auto;
  display: flex;
  justify-content: space-around;
  div {
    width: 300px;
    padding-top: 50px ;
    text-align: center;
    p{
      margin-top: 10px;
    }
    h2 {
      font-weight: 600;
      opacity: .7;
    }
  }
}
.banner {
  color: $color;
  padding: 100px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  >.actions {
    padding: 8px 0;
    font-size: 30px;

    a {
      margin: 0 8px;
      background: $green;
      color: white;
      display: inline-block;
      padding: 8px 24px;
      border-radius: $border-radius;

      &:hover {
        text-decoration: none;
      }
    }
  }
}
</style>
